using System;
using System.Data;
using System.Collections;
using System.Web;
using System.Web.Profile;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Configuration;

namespace ClickSocial.Framework
{
    public class CDefault : System.Web.UI.Page
    {
        protected string BaseDir;

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            //this.Load += new System.EventHandler(this.Page_Load);
            Page.Title = "Click Social";
            BaseDir = Application["BaseDir"] as string;
        }

        /*protected virtual void Page_Load(object sender, EventArgs e)        
        {
            if (User.Identity.IsAuthenticated)
            {
                if (User.IsInRole("Host"))
                {                    
                    long Espacio = Convert.ToInt64(ConfigurationManager.AppSettings["Espacio"]);
                    
                    PerfilComun perfil = ProfileBase.Create(User.Identity.Name) as PerfilComun;
                    
                    if (perfil.Espacio != Espacio)
                    {
                        perfil.Espacio = Espacio;
                        perfil.Save();
                    }
                }
              
                
            }

          
        }*/
    }
}
